package Fecse;

public class Students {
    public static void main(String[] args){
        Student p=new Student();
        p.name="wang";
        p.age=12;
        p.course="语文";
        p.hobby="打球";
        System.out.println(p.name+p.age+p.hobby+p.course);
        p.masege();

        Techer s=new Techer();
        s.name="老师";
        s.profession="电子信息";
        s.teachcourse="物联网";
        s.teacherage=33;
        System.out.println(s.name+s.teacherage+s.profession+s.teachcourse);
        s.massge();

        //测试Persion
        Person r= new Person();
        r.age=22;
        r.name="wj";
        r.sex="女";

           r.Study();
           r.showage();
           r.addage(2);

           //圆的面积
//        r.r=2;
//        System.out.println(r.r);
//        r.S();
//
        //点到远点的距离
        Point  de=new Point();
        de.y=4;
        de.x=2;
        de.z=6;
        System.out.println("("+de.x+","+de.y+","+de.z+")");

//        de.d(2,4,6,);
    }
}
